package com.etnet.streamserver.view;

import com.etnet.streamserver.view.client.ClientManager;
import com.etnet.streamserver.view.client.request.NssRequest;
import java.io.UnsupportedEncodingException;

public class Test {
    public static void main(String[] args) throws UnsupportedEncodingException {
        ClientManager clientManager = ClientManager.getInstance();

        clientManager.setServerIP("192.168.1.204");
        clientManager.setServerPort("9876");
        clientManager.start();
        try {
            Thread.sleep(10000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        NssRequest request = new NssRequest();

        request.setReqID("1");
        request.setReqActionType("1");
        request.setData(new String[] { "5", "108" });

        clientManager.putMessage(request);
    }
}